// 配置常量路由
const routes = [
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        name: 'login'
    },
    {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        name: 'home'
    },
    {
        path: '/404',
        component: () => import('@/views/404/index.vue'),
        name: '404'
    },
    {
        path: '/screen',
        component: () => import('@/views/screen/index.vue'),
        name: 'screen'
    },
    {
        path: '/test',
        component: () => import('@/views/test/index.vue'),
        name: 'test'
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/test', // 路由重定向的地址
        name: 'Any'
    }
]

export default routes;